Piwik\Plugins\MultiSites\API A

Total Complexity 68
Dependencies 17
Dependents 3
Total lines 439
Lines of code 258
Logical lines of code 173
Comment lines 122
Methods 16
Properties 1

Methods 16

Method Rating Maintainability Complexity Lines of code
buildDataTable()
B
36 19 77
calculateEvolutionPercentages()
S
53 7 20
getSitesIdFromPattern()
S
50 6 28
setPreviousMetricsTotalsMetadata()
S
51 6 26
setMetricsTotalsMetadata()
S
55 6 20
getApiMetrics()
S
56 4 16
getAllWithGroups()
S
57 4 14
getAll()
S
60 4 12
populateLabel()
S
62 3 12
getOne()
S
65 2 8
preformatApiMetricsForTotalsCalculation()
S
66 2 8
getSiteFromId()
S
76 1 4
filterRowsForTotalsCalculation()
S
76 1 4
getTotalMetadataName()
S
80 1 3
getLastPeriodMetadataName()
S
80 1 3
isEcommerceEvolutionMetric()
S
77 1 3